package com.can.common.constant;

/**
 * @Description 用户枚举
 * @Author can
 * @Date 2018/10/7
 * @Version 1.0
 */
public interface UserEnum {
    /**
     * 用户状态(1:启用  2:冻结  3:删除）
     */
    public enum Status{
        ENABLE(1, "启用"),
        DISABLE(2, "冻结"),
        DELETE(3, "删除");

        private Integer code;
        private String msg;

        Status(Integer code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    /**
     * 用户所在的部门
     */
    public enum DeptId{
        DISABLE(-1, "未选择部门"),
        RootDepartment(0, "顶级部门");

        private Integer code;
        private String msg;

        DeptId(Integer code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
